<template>
  <div>
    {{result}}
    <button @click="getUserInfo2()"> 点击从原生获取信息</button>
  </div>
</template>

<script>
export default {
  name: "login",
  data: function(){
    return {
      result: {"name": "演示JSBridge的使用"}
    }
  },
  methods: {
    getUserInfo2() {

      this.$YMDD.getUserInfo((params) => {
        console.log('调用成功1122')
        this.result = JSON.stringify(params)
      })
    },
  }
};
</script>

<style lang="scss" scoped>
div {
  color: aqua;
}
</style>
